#!/usr/bin/env python
from selenium import webdriver
import time

try:
    browser = webdriver.Chrome()
    browser.get('https://shimo.im/login?from=home')
    browser.find_element_by_xpath('//input[@name="mobileOrEmail"]').send_keys('xxx@163.com')
    browser.find_element_by_xpath('//input[@name="password"]').send_keys('password')
    button = browser.find_element_by_xpath('//button[@type="black"]')
    button.click()
    time.sleep(5)
except Exception as e:
    print(e)